package com.jiangjupeng46.pojo;

import java.io.Serializable;

public class TrainingPlan implements Serializable {
    private Integer id;
    private Integer memberId;
    private Integer coachId;
    private String planDescription;
    
    // 关联对象
    private Member member;
    private Coach coach;

    // 无参构造函数
    public TrainingPlan() {
    }

    // 有参构造函数
    public TrainingPlan(Integer id, Integer memberId, Integer coachId, String planDescription) {
        this.id = id;
        this.memberId = memberId;
        this.coachId = coachId;
        this.planDescription = planDescription;
    }

    // getter和setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getCoachId() {
        return coachId;
    }

    public void setCoachId(Integer coachId) {
        this.coachId = coachId;
    }

    public String getPlanDescription() {
        return planDescription;
    }

    public void setPlanDescription(String planDescription) {
        this.planDescription = planDescription;
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    public Coach getCoach() {
        return coach;
    }

    public void setCoach(Coach coach) {
        this.coach = coach;
    }

    @Override
    public String toString() {
        return "TrainingPlan{" +
                "id=" + id +
                ", memberId=" + memberId +
                ", coachId=" + coachId +
                ", planDescription='" + planDescription + '\'' +
                ", member=" + member +
                ", coach=" + coach +
                '}';
    }
}